/**
 * Additional content section / block functions for body.
 */

var rootpath = process.cwd() + '/',
  path = require('path'),
  calipso = require(path.join(rootpath, 'lib/calipso'));

exports = module.exports = function(req, options, callback) {

  /**
   *  Get additional content for blocks in the template
   */
  calipso.lib.step(

  function getContent() {
    options.getContent(req, "home-welcome", this.parallel());
    options.getContent(req, "home-section-1", this.parallel());
    options.getContent(req, "home-section-2", this.parallel());
    options.getContent(req, "home-section-3", this.parallel());
    options.getContent(req, "home-section-4", this.parallel());
    options.getContent(req, "home-section-5", this.parallel());
    options.getContent(req, "home-section-6", this.parallel());
    options.getBlock("tagcloud", this.parallel());
  }, function done(err, welcome, section1, section2, section3, section4, section5, section6, tagcloud) {
    callback(err,{
      welcome: welcome,
      section1: section1,
      section2: section2,
      section3: section3,
      section4: section4,
      section5: section5,
      section6: section6,
      tagcloud: tagcloud
    });
  });

};